<template>
  <div class="list-info">
      <h3>list{{info}}页面</h3>
      {{info}}
  </div>
</template>

<script>
export default {
    name:"list-info",
    data(){
        return{
            info:"添加"
        }
    }, 
    components:{},
    created(){},
    mounted(){
        console.log(this);
        let type =this.$route.params.type;
        console.log('type',type);
        if(type == 'add'){
            this.info ="添加"
        }else{
             this.info ="编辑"
        }
    },
    methods:{}
}
</script>

<style>

</style>